'use strict';

angular.module('tvshowsApp')
    .controller('ShowsController', function ($rootScope, $scope, $state, $timeout, Show) {

        $scope.shows = [];
        $scope.loadAll = function() {
            Show.query(function(result) {
                $scope.shows = result;
            });
        };
        $scope.loadAll();

    });
